<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/V_service_charge.js此处编写
 -->
 <template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/v_member_balance.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "childrenNumber",
        footer: "Foots",
        cnName: "储值卡余额报表",
        name: "V_member_balance",
        url: "/V_member_balance/",
        sortName: "createDate",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { LEVEL: "", typename: "", hoteldate: "" },
      // {"dataKey":"Card_Type","data":[],"title":"卡等级","field":"LEVEL","type":"select"},
      searchFormOptions: [
        [
          { title: "卡等级", field: "typename", type: "like" },
          {
            dataKey: "Card_Type",
            data: [],
            title: "卡类型",
            field: "LEVEL",
            type: "select",
          },
          { title: "营业日期", field: "hoteldate", type: "date1" },
        ],
      ],
      columns: [
        {
          field: "typename",
          title: "卡等级",
          type: "string",
          width: 200,
          align: "left",
        },
        {
          field: "LEVEL",
          title: "卡类型",
          type: "string",
          width: 220,
          require: true,
          align: "left",
          bind: { key: "Card_Type", data: [] },
        },
        //  {field:'cardno',title:'卡号',type:'string',width:220,align:'left'},
        //  {field:'hoteldate',title:'单价',type:'decimal',width:60,align:'left'},
        {
          field: "ybalance",
          title: "上日余额",
          type: "decimal",
          width: 60,
          align: "left",
        },
        {
          field: "tbalance",
          title: "今天余额",
          type: "decimal",
          width: 90,
          align: "left",
        },
        {
          field: "difference",
          title: "差额",
          type: "decimal",
          width: 90,
          align: "left",
        },
      ],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
